package service.impl;

import dao.BillDao;
import dao.impl.BillDaoImpl;
import pojo.Amount;
import pojo.TransferTable;
import service.BillService;
import util.PageHelper;

import java.util.ArrayList;

public class BillServiceImpl implements BillService {
    private BillDao billDao=new BillDaoImpl();

    @Override
    public boolean login(String account, String password) {
        return billDao.selectUser(account,password).size()!=0?true:false;
    }

    @Override
    public ArrayList<TransferTable> show() {
        return billDao.selectLogin();
    }

    @Override
    public ArrayList<TransferTable> selectQuery(TransferTable transferTable,Amount amount,PageHelper pageHelper) {
        return billDao.selectQuery(transferTable,amount,pageHelper);
    }
}
